package com.cdsxt.po;

import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.cdsxt.base.BaseEntity;

@Entity
@Table(name = "test_stu")
/**
 * @author 成都尚学堂 & mr zeng
 * 客服热线：028-65176856
 * 网址： www.cd-sxt.com
 * 
 * 学生模块
 */
public class TestStuPo extends BaseEntity {

	
	 //学生名字
	private String sname;
	 //学生年龄
	private Integer sage;
	 //入学时间
	private Date studyDate;
	
	 
	public TestStuPo() {
	}
	
	public void setSname(String  sname){
	 		this.sname=sname;
	}
	public void setSage(Integer  sage){
	 		this.sage=sage;
	}
	public void setStudyDate(Date  studyDate){
	 		this.studyDate=studyDate;
	}
	 
	 
	public String getSname(){
	 		return this.sname;
	}
	public Integer getSage(){
	 		return this.sage;
	}
	public Date getStudyDate(){
	 		return this.studyDate;
	}
	
	
	public String toString() {

		StringBuilder sb=new StringBuilder("\nTestStuPo【数据信息】：");
		sb.append("父类的信息："+super.toString());
		sb.append("自己类的信息：");
		sb.append("sname");
		sb.append("=");
		sb.append(this.sname);
		sb.append(", ");
		sb.append("sage");
		sb.append("=");
		sb.append(this.sage);
		sb.append(", ");
		sb.append("studyDate");
		sb.append("=");
		sb.append(this.studyDate);
		sb.append(", ");
		
		return sb.toString();
	}

}
